package com.x.crm.model;

import com.x.crm.DocDesc;
import com.x.framework.annotation.MappingColumn;
import com.x.framework.annotation.MappingTable;
import com.x.framework.model.BaseObject;

import java.util.Date;

/**
 * Created by x on 2017/11/13.
 */
@MappingTable(tableName = "CRM_CUSTOMER")
public class Customer extends BaseObject {
    @MappingColumn(columnName = "CUSTOMER_ID", columnPk = true, columnLength = 32)
    private String customerId;
    @DocDesc("客户姓名")
    @MappingColumn(columnName = "CUSTOMER_NAME")
    private String customerName;
    @DocDesc("客户编号")
    @MappingColumn(columnName = "CUSTOMER_NO")
    private String customerNo;
    @DocDesc("客户手机号")
    @MappingColumn(columnName = "CUSTOMER_PHONE")
    private String customerPhone;
    @DocDesc("所属省份")
    @MappingColumn(columnName = "PROVINCE_ID")
    private String provinceId;
    @DocDesc("所属城市")
    @MappingColumn(columnName = "CITY_ID")
    private String cityId;
    @DocDesc("省名称")
    @MappingColumn(columnName = "PROVINCE_NAME")
    private String provinceName;
    @DocDesc("城市名称")
    @MappingColumn(columnName = "CITY_NAME")
    private String cityName;
    @MappingColumn(columnName = "CUSTOMER_CREATE_TIME")
    private Date createTime;
    @MappingColumn(columnName = "CUSTOMER_UPDATE_TIME")
    private Date updateTime;
    @DocDesc("客户性别 1-男 2-女")
    @MappingColumn(columnName = "CUSTOMER_GENDER")
    private Integer customerGender;
    @DocDesc("客户级别")
    @MappingTable(tableName = "CRM_CUSTOMER_LEVEL", modelClass = CustomerLevel.class)
    private CustomerLevel customerLevel;
    @DocDesc("市场id")
    @MappingColumn(columnName = "MARKET_ID")
    private String marketId;
    @DocDesc("微信昵称")
    @MappingColumn(columnName = "CUSTOMER_NICKNAME")
    private String customerNickname;
    @DocDesc("微信头像")
    @MappingColumn(columnName = "CUSTOMER_HEAD_IMAGE")
    private String customerHeadImage;
    @DocDesc("微信OPENID")
    @MappingColumn(columnName = "CUSTOMER_OPEN_ID")
    private String customerOpenId;
    @DocDesc("微信来源备注")
    @MappingColumn(columnName = "CUSTOMER_REMARK")
    private String customerRemark;

    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getCustomerNo() {
        return customerNo;
    }

    public void setCustomerNo(String customerNo) {
        this.customerNo = customerNo;
    }

    public String getCustomerPhone() {
        return customerPhone;
    }

    public void setCustomerPhone(String customerPhone) {
        this.customerPhone = customerPhone;
    }

//    public String getLevelId() {
//        return levelId;
//    }
//
//    public void setLevelId(String levelId) {
//        this.levelId = levelId;
//    }

    public String getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(String provinceId) {
        this.provinceId = provinceId;
    }

    public String getCityId() {
        return cityId;
    }

    public void setCityId(String cityId) {
        this.cityId = cityId;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

//    public String getChannelId() {
//        return channelId;
//    }
//
//    public void setChannelId(String channelId) {
//        this.channelId = channelId;
//    }

//    public String getCollectorId() {
//        return collectorId;
//    }
//
//    public void setCollectorId(String collectorId) {
//        this.collectorId = collectorId;
//    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getCustomerGender() {
        return customerGender;
    }

    public void setCustomerGender(Integer customerGender) {
        this.customerGender = customerGender;
    }

//    public Channel getChannel() {
//        return channel;
//    }
//
//    public void setChannel(Channel channel) {
//        this.channel = channel;
//    }

    public CustomerLevel getCustomerLevel() {
        return customerLevel;
    }

    public void setCustomerLevel(CustomerLevel customerLevel) {
        this.customerLevel = customerLevel;
    }

    public String getMarketId() {
        return marketId;
    }

    public void setMarketId(String marketId) {
        this.marketId = marketId;
    }

    public String getCustomerNickname() {
        return customerNickname;
    }

    public void setCustomerNickname(String customerNickname) {
        this.customerNickname = customerNickname;
    }

    public String getCustomerHeadImage() {
        return customerHeadImage;
    }

    public void setCustomerHeadImage(String customerHeadImage) {
        this.customerHeadImage = customerHeadImage;
    }

    public String getCustomerOpenId() {
        return customerOpenId;
    }

    public void setCustomerOpenId(String customerOpenId) {
        this.customerOpenId = customerOpenId;
    }

    public String getCustomerRemark() {
        return customerRemark;
    }

    public void setCustomerRemark(String customerRemark) {
        this.customerRemark = customerRemark;
    }
}
